extends Label

@export var speed = -200
@export var show_time = 1.0
var cur_time = 0.0
# Called when the node enters the scene tree for the first time.
func _ready():
	Global.score += int(text)
	pass # Replace with function body.


# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
	position.y += delta * speed
	cur_time += delta
	if cur_time >= show_time:
		queue_free()
	pass
